package com.atguigu.gulimall.product.vo;

import com.atguigu.gulimall.product.entity.SkuImagesEntity;
import com.atguigu.gulimall.product.entity.SkuInfoEntity;
import com.atguigu.gulimall.product.entity.SpuInfoDescEntity;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @version 1.0
 * @Author yanjingren
 * @Date 2021/6/3
 * @Description com.atguigu.gulimall.product.vo
 */
@Data
@ToString
public class SkuItemVo {
    // 1.sku的基本信息 pms_sku_info
    private SkuInfoEntity info;
    // 2.sku的图片信息 pms_sku_images
    private List<SkuImagesEntity> images;
    // 3.获取spu的销售属性组合
    private List<SkuItemSaleAttrVo> saleAttr;
    // 4.获取spu的介绍
    private SpuInfoDescEntity desp;
    // 5.获取spu的规格参数信息
    private List<SpuItemBaseAttrVo> groupAttrs;

    // 有货无货
    private Boolean hasStock = true;
}
